package org.jeecg.modules.job.wms.service.impl;

import org.jeecg.modules.job.wms.entity.WmsEduExp;
import org.jeecg.modules.job.wms.mapper.WmsEduExpMapper;
import org.jeecg.modules.job.wms.service.IWmsEduExpService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 教育经历
 * @Author: jeecg-boot
 * @Date:   2022-12-18
 * @Version: V1.0
 */
@Service
public class WmsEduExpServiceImpl extends ServiceImpl<WmsEduExpMapper, WmsEduExp> implements IWmsEduExpService {
	
	@Autowired
	private WmsEduExpMapper wmsEduExpMapper;
	
	@Override
	public List<WmsEduExp> selectByMainId(String mainId) {
		return wmsEduExpMapper.selectByMainId(mainId);
	}

	@Override
	public boolean update(WmsEduExp param) {
		//判断ID是否存在，如果不存在，则新建
		if (param.getId()!=null){
			return this.updateById(param);
		}else{
			return  this.save(param);
		}
	}
}
